// var express = require('express');
// var router = express.Router();

var groupController = {
  index:function(req, res, next){
    res.send('respond groupController');
  },

  list:function(req, res, next){
    var data = {title:"changed"};
    res.render('user/index',data);
  },
  init:function(router){//register router
  	//console.log(app);

	router.get('/group/index',groupController.index);

  	return router;
  }
};

module.exports = groupController;